package com.youlai.boot.modules.comment.converter;

import com.youlai.boot.modules.comment.model.Comment;
import com.youlai.boot.modules.comment.model.CommentForm;
import com.youlai.boot.modules.comment.model.CommentVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CommentConverter {
    CommentVO toVO(Comment comment);

    Comment toEntity(CommentForm form);
}